import 'package:json_annotation/json_annotation.dart';

part 'loginbean.g.dart';


@JsonSerializable()

class Loginbean extends Object with _$LoginbeanSerializerMixin{

  @JsonKey(name: 'msg')
  String msg;

  @JsonKey(name: 'code')
  String code;

  @JsonKey(name: 'result')
  Result result;

  Loginbean(this.msg,this.code,this.result,);

  factory Loginbean.fromJson(Map<String, dynamic> srcJson) => _$LoginbeanFromJson(srcJson);


}


@JsonSerializable()
class Result extends Object with _$ResultSerializerMixin{

  @JsonKey(name: 'serFlag')
  String serFlag;

  @JsonKey(name: 'status')
  String status;

  @JsonKey(name: 'userId')
  String userId;

  @JsonKey(name: 'mobile')
  String mobile;

  @JsonKey(name: 'verifyCode')
  String verifyCode;

  @JsonKey(name: 'isOldUser')
  int isOldUser;

  Result(this.serFlag,this.status,this.userId,this.mobile,this.verifyCode,this.isOldUser,);

  factory Result.fromJson(Map<String, dynamic> srcJson) => _$ResultFromJson(srcJson);

}


